package com.crm.model.vo.permissionManagement;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author wll
 * @Date 2020/12/8 16:55
 */
@Data
public class SysInfoVO  {
    /**
     * 1 OA系统   2 CRM系统
     */
    private String sysId;

    /**
     * 菜单类型  1管理 2用户
     */
    private Short menuType;

    private String menuId;
    private String menuPid;
    private String menuName;
    private Boolean isOpen;

    /**
     * 子数据
     */
    private List<SysInfoVO> children = new ArrayList<>();

    public String getSysId() {
        return sysId;
    }

    public void setSysId(String sysId) {
        this.sysId = sysId;
    }

    public Short getMenuType() {
        return menuType;
    }

    public void setMenuType(Short menuType) {
        this.menuType = menuType;
    }

    public String getMenuId() {
        return menuId;
    }

    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }

    public String getMenuPid() {
        return menuPid;
    }

    public void setMenuPid(String menuPid) {
        this.menuPid = menuPid;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public Boolean getOpen() {
        return isOpen;
    }

    public void setOpen(Boolean open) {
        isOpen = open;
    }

    public List<SysInfoVO> getChildren() {
        return children;
    }

    public void setChildren(List<SysInfoVO> children) {
        this.children = children;
    }

    public SysInfoVO(String sysId, Short menuType, String menuId, String menuPid, String menuName, Boolean isOpen, List<SysInfoVO> children) {
        this.sysId = sysId;
        this.menuType = menuType;
        this.menuId = menuId;
        this.menuPid = menuPid;
        this.menuName = menuName;
        this.isOpen = isOpen;
        this.children = children;
    }

    public SysInfoVO() {
        super();
    }
}
